<div class="accord">
	<h4>Unresolved Issues <span class="badge"><?=empty($issues->unresolved) ? '0' : count($issues->unresolved)?></span></h4>
	<div>
		<div class="table-responsive">
	    <table class='table table-hover'>
	      <tr class="active text-bold" >
	        <td>Comment</td>
	        <td>Issued By</td>
	        <td>Date</td>
	        <td>SY(Level)</td>
	      	<? if(!empty($issues->unresolved)):?>
			      <? foreach($issues->unresolved  as $i ) :?>
			      <tr>
			        <td width="30%" ><?= $i->comment ?></td>
			        <td><?= ucwords($i->issued_by)?></td>
			        <td><?= date('m-d-Y', strtotime($i->created_at))?></td>
			        <td><?=$i->sy_from?>-<?=$i->sy_to?>(<?=$i->level_desc?>)</td>
			      </tr>
			      <? endforeach ;?>
		      <? else : ?>
		      <tr>
		        <td colspan="5" class="text-center"> No Unresolved issue.</td>
		      </tr>
		      <? endif ;?>
	    </table>
		</div>
	</div>

	<h4>Resolved Issues <span class="badge"><?=empty($issues->resolved) ? '0' : count($issues->resolved)?></span></h4>
	<div>
		<div class="table-responsive">
	    <table class='table table-hover'>
	      <tr class="active text-bold" >
	        <td>Comment</td>
	        <td>Issued By</td>
	        <td>Date Cleared</td>
	        <td>SY(Level)</td>
	        <td>Remarks</td>
	      	<? if(!empty($issues->resolved)):?>
			      <? foreach($issues->resolved  as $i ) :?>
			      <tr>
			        <td width="30%" ><?= $i->comment ?></td>
			        <td><?= ucwords($i->issued_by)?></td>
			        <td><?= date('m-d-Y', strtotime($i->resolved_date))?></td>
			        <td><?=$i->sy_from?>-<?=$i->sy_to?>(<?=$i->level_desc?>)</td>
							<td width="20%" ><?= $i->resolved_remark ?></td>			        
			      </tr>
			      <? endforeach ;?>
		      <? else : ?>
		      <tr>
		        <td colspan="5" class="text-center"> No resolved issue.</td>
		      </tr>
		      <? endif ;?>
	    </table>
		</div>
	</div>
</div>
